<template>
	<view>
		<baseHead title="企业相册" bg="#ffffff" color="#000000" :text_right="title" :right="false" @clickRight="clickRight">
		</baseHead>

		<view style="padding: 20rpx">
			<view class="sdgt">
				<u-upload :fileList="fileList5"  :useBeforeRead="true"
					 :disabled="true" :uploadIconColor="uploadIconColor" :deletable="false">
				</u-upload>
			</view>
		</view>
	</view>
</template>

<script>
	import baseHead from '@/pages/component/baseHead.vue'
	export default {
		data() {
			return {
				URL: this.$config.domain.staticUrl,
				headImg: [],
				model: {
					PhotoPaths: "",
				},
				show: true,
				title: "保存",
				uploadIconColor: '#f1f2f6',
				corpid: ''
			}
		},
		components: {
			baseHead
		},
		onLoad(option) {
			console.log(option);
			if (option.CorpId) {
				this.corpid = option.CorpId
			}
		},
		computed: {
			fileList5() {
				return this.headImg.map(res => {
					console.log(res);
					return {
						url: this.URL + res
					}
				})
			},

		},
		created() {
			this.listdata();
		},

		methods: {

			listdata() {
				this.$http.huirc.corpdetails({
					"Id": this.corpid
				}).then(res => {
				
					this.headImg =JSON.parse(res.Result.PhotoPaths) ;
					console.log(this.headImg);

				})
			},
		
		}
	}
</script>

<style scoped lang="scss">
	.sdgt {
		display: flex;
		justify-content: space-between;
		align-items: center;
		flex-wrap: wrap;
	}
</style>
